package models

import (
    "go-admin/common/models"
)

type HtTalent struct {
    models.Model
    Name       string     `json:"name" gorm:"type:varchar(128);comment:姓名"`
    Phone      string     `json:"phone" gorm:"type:varchar(11);comment:手机号"`
    Sex        string     `json:"sex" gorm:"type:varchar(255);comment:性别"`
    Email      string     `json:"email" gorm:"type:varchar(128);comment:邮箱"`
    Status     string     `json:"status" gorm:"type:varchar(4);comment:状态"`
    Level      string     `json:"level" gorm:"type:varchar(4);comment:评级"`
    Note       string     `json:"note" gorm:"type:varchar(2048);comment:备注信息"`
    ResumeList []HtResume `json:"resumeList" gorm:"foreignKey:TalentId;references:Id"`
    models.ModelTime
    models.ControlBy
}

func (HtTalent) TableName() string {
    return "ht_talent"
}

func (e *HtTalent) Generate() models.ActiveRecord {
    o := *e
    return &o
}

func (e *HtTalent) GetId() interface{} {
    return e.Id
}
